package com.jiechuang.common.bean.addOrUpdate;

import lombok.Data;
import org.springframework.util.StringUtils;

@Data
public class PermissionAddOrUpdate {
    private Integer id;
    private Integer parentId=0;
    private Integer permissionLevel=1;
    private String permissionName;
    private String permissionCode;
    public String getPermissionName() {
        return StringUtils.hasLength(permissionName)?permissionName:null;
    }
    public String getPermissionCode() {
        return StringUtils.hasLength(permissionCode)?permissionCode:null;
    }
}
